package lesson2;

/*
访问修饰符 class关键字 类名称{
   成员变量
   成员方法

 }
 */
//public???
//
public class Student extends Person {
    //成员变量/属性
    public int age;
    String name;
    private String sex;
    //成员方法
    public void playGame(){
        System.out.println("王者荣耀...");
        age = 222;
        Student student = new Student();
        student.age = 234;
        cardId = "21312";
        sex = "男";
        student.sex = "男";
        //type = "abc";
    }

    void drink(){
        System.out.println("肥宅快乐水...");
    }

    void eat(){
        System.out.println("啥都吃...");
    }


}
